<h2><?php print $header?></h2>

<div class="buttons">                
	<a href="<?php print site_url( 'article/admin/portlets/form' )?>">
    <?php print $this->bep_assets->icon( 'add' );?>
    <?php print $this->lang->line( 'create_portlets' )?>
    </a>
</div>
<br />
<br />
<?php print form_open('article/admin/portlets/delete')?>
<table class="data_grid" cellspacing="0">
    <thead>
        <tr>
            <th><?php print $this->lang->line( 'portlet_name' )?></th>
            <th width=15% class="middle"><?php print $this->lang->line( 'portlet_edit' )?></th>
            <th width=15%><?php print form_checkbox( 'all', 'select', FALSE)?><?php print $this->lang->line( 'portlet_delete' )?></th>        
        </tr>
    </thead>
    <tfoot>
        <tr>
            <td colspan=2>&nbsp;</td>
            <td><?php print form_submit( 'delete', $this->lang->line( 'portlet_delete_button' ), 'onClick="return confirm(\''.$this->lang->line('portlet_delete_confirm').'\');"')?></td>
        </tr>
    </tfoot>
    <tbody>
        <?php foreach( $portlets->result_array( ) as $row ){ ?>
        <tr>
            <td><?php print $row['name']?></td>
            <td class="middle"><a href="<?php print site_url('article/admin/portlets/form/'.$row['id'])?>"><?php print $this->bep_assets->icon( 'pencil' ); ?></a></td>
            <td><?php print form_checkbox( 'select[]', $row['id'], FALSE ); ?></td>
        </tr>
        <?php } //foreach ?>
    </tbody>
</table>
<?php print form_close()?>